const appInst = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
       tabbar: {},
      qishu:200202,
      sheepthree:[
        { sheepimg:"/images/sheep_09.png",
          sheeptitle:"尊享生活",
          sheepprice:"1980"
        },
        { sheepimg:"/images/sheep_11.png",
          sheeptitle:"品质生活",
          sheepprice:"890"
        },
        { sheepimg:"/images/sheep_13.png",
          sheeptitle:"小资生活",
          sheepprice:"690"
        }
      ],
      abouteight:[
        {
          abouticon:"/images/sheepicon_07.png",
          abouttitle:"项目介绍",
          abouturl:"/pages/sheepabout/about1"
        },
        {
          abouticon:"/images/sheepicon_09.png",
          abouttitle:"权威认证",
          abouturl:"/pages/sheepabout/about2"
        },
        {
          abouticon:"/images/sheepicon_17.png",
          abouttitle:"品牌故事",
          abouturl:"/pages/sheepabout/about3"
        },
        {
          abouticon:"/images/sheepicon_19.png",
          abouttitle:"荣誉证书",
          abouturl:"/pages/sheepabout/about4"
        },
        {
          abouticon:"/images/sheepicon_27.png",
          abouttitle:"社会责任",
          abouturl:"/pages/sheepabout/about5"
        },
        {
          abouticon:"/images/sheepicon_29.png",
          abouttitle:"合作伙伴",
          abouturl:"/pages/sheepabout/about6"
        },
        {
          abouticon:"/images/sheepicon_37.png",
          abouttitle:"用户口碑",
          abouturl:"/pages/sheepabout/about7"
        },
        {
          abouticon:"/images/sheepicon_39.png",
          abouttitle:"服务承诺",
          abouturl:"/pages/sheepabout/about8"
        }
      ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
     appInst.editTabbar(); //调用tabbar
    this.setData({
     msgList: [
      { lyrname: "张三", lyrtel: "13391960000",lyrsl:"1" },
      { lyrname: "张三", lyrtel: "13341581111",lyrsl:"1"},
      { lyrname: "张三", lyrtel: "13387952222",lyrsl:"1" }]
      
    });
     const token = wx.getStorageSync("token")
     if (!token) {
         wx.reLaunch({
             url: '/pages/login/login'
         });
     }
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})